package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_MSC_MONITOR"
 *     
*/
public class CcpMscMonitor implements Serializable {

    /** identifier field */
    private String cmmGuid;

    /** nullable persistent field */
    private String opTime;

    /** nullable persistent field */
    private String loginIp;

    /** nullable persistent field */
    private String userGuid;

    /** nullable persistent field */
    private String serviceId;

    /** nullable persistent field */
    private String opResult;

    /** nullable persistent field */
    private String xtraInfo;

    /** nullable persistent field */
    private String logType;

    /** nullable persistent field */
    private String businessDesc;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpMscMonitor(String cmmGuid, String opTime, String loginIp, String userGuid, String serviceId, String opResult, String xtraInfo, String logType, String businessDesc, String reserved1, String reserved2, String reserved3) {
        this.cmmGuid = cmmGuid;
        this.opTime = opTime;
        this.loginIp = loginIp;
        this.userGuid = userGuid;
        this.serviceId = serviceId;
        this.opResult = opResult;
        this.xtraInfo = xtraInfo;
        this.logType = logType;
        this.businessDesc = businessDesc;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpMscMonitor() {
    }

    /** minimal constructor */
    public CcpMscMonitor(String cmmGuid) {
        this.cmmGuid = cmmGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CMM_GUID"
     *         
     */
    public String getCmmGuid() {
        return this.cmmGuid;
    }

    public void setCmmGuid(String cmmGuid) {
        this.cmmGuid = cmmGuid;
    }

    /** 
     *            @hibernate.property
     *             column="OP_TIME"
     *             length="18"
     *         
     */
    public String getOpTime() {
        return this.opTime;
    }

    public void setOpTime(String opTime) {
        this.opTime = opTime;
    }

    /** 
     *            @hibernate.property
     *             column="LOGIN_IP"
     *             length="30"
     *         
     */
    public String getLoginIp() {
        return this.loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    /** 
     *            @hibernate.property
     *             column="USER_GUID"
     *             length="32"
     *         
     */
    public String getUserGuid() {
        return this.userGuid;
    }

    public void setUserGuid(String userGuid) {
        this.userGuid = userGuid;
    }

    /** 
     *            @hibernate.property
     *             column="SERVICE_ID"
     *             length="20"
     *         
     */
    public String getServiceId() {
        return this.serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    /** 
     *            @hibernate.property
     *             column="OP_RESULT"
     *             length="2"
     *         
     */
    public String getOpResult() {
        return this.opResult;
    }

    public void setOpResult(String opResult) {
        this.opResult = opResult;
    }

    /** 
     *            @hibernate.property
     *             column="XTRA_INFO"
     *             length="200"
     *         
     */
    public String getXtraInfo() {
        return this.xtraInfo;
    }

    public void setXtraInfo(String xtraInfo) {
        this.xtraInfo = xtraInfo;
    }

    /** 
     *            @hibernate.property
     *             column="LOG_TYPE"
     *             length="2"
     *         
     */
    public String getLogType() {
        return this.logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    /** 
     *            @hibernate.property
     *             column="BUSINESS_DESC"
     *             length="200"
     *         
     */
    public String getBusinessDesc() {
        return this.businessDesc;
    }

    public void setBusinessDesc(String businessDesc) {
        this.businessDesc = businessDesc;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="200"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cmmGuid", getCmmGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpMscMonitor) ) return false;
        CcpMscMonitor castOther = (CcpMscMonitor) other;
        return new EqualsBuilder()
            .append(this.getCmmGuid(), castOther.getCmmGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCmmGuid())
            .toHashCode();
    }

}
